<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>中建五局</title>
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <!-- No Baidu Siteapp-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!-- Add to homescreen for Chrome on Android -->
    <meta name="mobile-web-app-capable" content="yes">
    <!-- Add to homescreen for Safari on iOS -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <!-- Tile icon for Win8 (144x144 + tile color) -->
    <meta name="msapplication-TileColor" content="#0e90d2">
    <link rel="stylesheet" href="css/amazeui.min.css">
    <link rel="stylesheet" href="css/app.css">
    <link rel="stylesheet" href="css/public.css">
</head>

<body>
    <div class="am-g login_wrap" style="height: 100%; vertical-align: middle">
        <div class="login">
            <div class="login_logo">
                <img src="images/logo.png">
            </div>
            <h2 class="login_tittle">中建五局第三建设有限公司</h2>
            <div class="login_input">
                <input class="input_account" type="text" placeholder="请输入账号">
            </div>
            <div class="login_input">
                <input class="input_password" type="password" placeholder="请输入登录密码">
            </div>
            <div class="login_go"><a href="javascript:;">登录</a></div>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!--<![endif]-->
    <!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
    <script src="js/amazeui.min.js"></script>
    <script type="application/javascript">
            $('.login_go').click(function(){
                var oUsername = $('.input_account').val();
                var oPassword = $('.input_password').val();
                $.post('/v1/admin-user/login',{username:oUsername,password:oPassword},function(data){
                        if( data.status == 200 ){
                            window.location.href = './main.html?access-token='+data.body;
                        }
                })
            })
    </script>
</body>

</html>